﻿using System;
using System.Collections.Generic;
using System.Text;

using FundSms.Client.IDAL;
using FundSms.Client.Model;

namespace FundSms.Client.BLL
{
    public class SmsReturn
    {
        private static readonly ISmsReturn dal = FundSms.Client.DALFactory.DataAccess.CreateSmsReturn();

        public void Insert(TSMSReturnHundSunInfo returninfo)
        {
            dal.Insert(returninfo);
        }

        public void InsertBatch(string sql)
        {
            dal.InsertBatch(sql);
        }

        public void InsertList(List<TSMSReturnHundSunInfo> li)
        {
            dal.InsertList(li);
        }

        public void Update(TSMSReturnHundSunInfo returninfo)
        {
            dal.Update(returninfo);
        }

        public void UpdateStatus(string status, string smsid, string mobile)
        {
            dal.UpdateStatus(status, smsid, mobile);
        }

        public int GetSendCount(DateTime datetime)
        {
            return dal.GetSendCount(datetime);
        }

        public int GetReturnCount(DateTime datetime)
        {
            return dal.GetReturnCount(datetime);
        }

        public int GetUnReturnCount(DateTime datetime)
        {
            return dal.GetUnReturnCount(datetime);
        }

        public int GetSuccessCount(DateTime datetime)
        {
            return dal.GetSuccessCount(datetime);
        }

        public int GetFailureCount(DateTime datetime)
        {
            return dal.GetFailureCount(datetime);
        }

        //public void UpdateStatus(decimal sequenceid, string status)
        //{
        //    dal.UpdateStatus(sequenceid,status);
        //}
    }
}
